/*************************************************************************
  > File Name: 04.cmbine_num.c
  > Author: icebear
  > Mail: 3322366195@qq.com
  > Created Time: Fri 14 Jul 2023 02:03:48 PM UTC
  >有1、2、3、4个数字，能组成多少个互不相同且无重复数字的三位数？都是多少？
 ************************************************************************/

#define num1 1
#define num2 2
#define num3 3
#define num4 4
#include <stdio.h>
int main()
{
    int i=0,j=0,k=0,l=0;
    int value=0;
    for (i = 1; i <= 4; i++) {
        for (j = 1; j <= 4; j++) {
            if (j != i) {
                for (k = 1; k <= 4; k++) {
                    if ((k != i) && (k != j)) {
                        if ((l != i) && (l != j)) {
                            value *= 10;
                            value += i;
                            value *= 10;
                            value += j;
                            value *= 10;
                            value += k;
                            printf("%d\t", value);
                            value = 0;
                        }

                    }
                }
            }
        }
        printf("\n");
    }
}
